<?php
/**
 * Created by PhpStorm.
 * User: yf
 * Date: 2019-01-01
 * Time: 20:06
 */

return [
    'TOKEN_NAME' => 'token_name',
    'SERVER_NAME' => "MING XING TANG",
    'MAIN_SERVER' => [
        'LISTEN_ADDRESS' => '0.0.0.0',
        'PORT' => 7700,
        'SERVER_TYPE' => EASYSWOOLE_WEB_SERVER, //可选为 EASYSWOOLE_SERVER  EASYSWOOLE_WEB_SERVER EASYSWOOLE_SOCKET_SERVER
        'SOCK_TYPE' => SWOOLE_TCP,
        'RUN_MODEL' => SWOOLE_PROCESS,
        'SETTING' => [
            'worker_num' => 8,
            'max_request' => 500,
            'task_worker_num' => 8,
            'task_max_request' => 100,
            'task_enable_coroutine'=>true
        ]
    ],
    'TEMP_DIR' => null,
    'LOG_DIR' => '/www/wwwroot/api.mxtang.net/Log/test',
    'CONSOLE' => [
        'ENABLE' => true,
        'LISTEN_ADDRESS' => '127.0.0.1',
        'HOST' => '127.0.0.1',
        'PORT' => 7711,
        'EXPIRE' => '120',
        'AUTH' => null,
        'PUSH_LOG' => true

    ],
    'MYSQL' => [
        'host' => '39.96.165.186',
        'port' => '3306',
        'user' => 'www_mxtang_net',
        'password' => 'AAACthzTYJjxnmAm',
        'timeout' => '5',
        'charset' => 'utf8mb4',
        'database' => 'www_mxtang_net',
        'POOL_MAX_NUM' => 20,
        'POOL_TIME_OUT' => '0.1',
    ],

    'REDIS' => [
        'host'          => '127.0.0.1',
        'port'          => '6379',
        'auth'          => 'zzjbs%2019_redis',
        'POOL_MAX_NUM'  => '10',
        'POOL_MIN_NUM'  => '5',
        'POOL_TIME_OUT' => '0.1',
    ],
];